﻿using AutoMapper;
using S.PurchaseAndSales.Api.Application.Command.PurchaseFormCommand;
using S.PurchaseAndSales.Api.Application.Command.SheepSaleCommand;
using S.PurchaseAndSales.Domain.Model;

namespace S.PurchaseAndSales.Api.Extensions.AutoMapper
{
    public class SetProfile : Profile
    {
        public SetProfile()
        {
            CreateMap<AddSheepSaleCommand, SheepSaleModel>(); //羊只销售

            CreateMap<AddCustomerCommand, CustomerInformationModel>(); //客户信息
            CreateMap<VendorAddCommand, VendorModel>(); //供应商添加
            CreateMap<SaleSheepUpdateCommand, SheepSaleModel>();//羊只销售修改
            CreateMap<SaleSheepUpdateCheckStateCommand, SheepSaleModel>();//羊只销售的修改（状态）
            CreateMap<SaleSheepUpdateMoneyCommand, SheepSaleModel>();//修改羊只销售（财务状态）

            //修改采购
            CreateMap<PurchaseFormUpdateCommand, PurchaseFormModel>();
        }
    }
}
